package cn.edu.sspu.www.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sspu.www.domain.BaseTeacher;
import cn.edu.sspu.www.mapper.BaseTeacherMapper;
import cn.edu.sspu.www.service.BaseTeacherService;

@Service
public class BaseTeacherServiceImpl implements BaseTeacherService {
	
	@Autowired
	private BaseTeacherMapper mapper;

	@Override
	public int addBaseTeacher(BaseTeacher baseTeacher) {
		
		return mapper.addBaseTeacher(baseTeacher);
	}

	@Override
	public int editBaseTeacher(BaseTeacher baseTeacher) {
		
		return mapper.editBaseTeacher(baseTeacher);
	}

	@Override
	public int delBaseTeacher(Long id) {
		
		return mapper.delBaseTeacher(id);
	}

	@Override
	public List<BaseTeacher> queryBaseTeacherList(BaseTeacher queryVo) {
		
		return mapper.queryBaseTeacherList(queryVo);
	}

	@Override
	public BaseTeacher viewBaseTeacher(Long id) {
		
		return mapper.viewBaseTeacher(id);
	}

}
